import 'dart:convert';
import 'dart:core';

import 'package:du_application/http/HttpUtil.dart';
import 'package:du_application/model/IndexModel.dart';
import 'package:flutter/material.dart';

class IndexProvide with ChangeNotifier {
  IndexModel indexModel;
 List<FloorGoodsList> floorGoodsList;

  getIndex() async {
 
    await HttpUtil.getInstance().get("/home/index").then((data) {
      indexModel = IndexModel.fromJson(json.decode(data.toString()));
      floorGoodsList=indexModel.data.floorGoodsList;
    });
   
    notifyListeners();
  }
}
